<div id="background">
  <form class="layui-form" *ngIf="room">
    <div class="layui-form-item">
      <div class="layui-form-inline">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-inline">
          <input type="text" name="name" required lay-verify="required" placeholder="请输入房间名称" autocomplete="off" class="layui-input"
            [(ngModel)]="room.name">
        </div>
      </div>
    </div>

    <div class="layui-form-item">
      <div class="layui-form-inline">
        <label class="layui-form-label">房间类型</label>
        <div class="layui-input-inline">
          <input type="text" name="typeId" required lay-verify="required" placeholder="请输入房间类型编号" autocomplete="off" class="layui-input"
            [(ngModel)]="room.type">
        </div>
      </div>
      <div class="layui-form-inline">
        <label class="layui-form-label">房间状态</label>
        <div class="layui-input-inline">
          <input type="text" name="status" required lay-verify="required" placeholder="请输入房间状态" autocomplete="off" class="layui-input"
            [(ngModel)]="room.status">
        </div>
      </div>
    </div>

    <div class="layui-form-item">
      <div class="layui-form-inline">
        <label class="layui-form-label">描述信息</label>
        <div class="layui-input-block">
          <textarea name="desc" placeholder="请输入内容" class="layui-textarea" [(ngModel)]="room.desc"></textarea>
        </div>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn" lay-submit lay-filter="formDemo" (click)="updateRoom()">确定修改</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>
</div>
